package com.opensource.component.swagger.config;

import java.util.LinkedHashMap;
import java.util.Map;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: wangweir
 * @date: 2019/5/17 15:34
 */
@ConfigurationProperties(prefix = "myswagger")
@Component
@Getter
@Setter
public class SwaggerConfig {

  /**
   * 分组文档
   **/
  private Map<String, DocketInfo> docket = new LinkedHashMap<>();


  @Data
  @NoArgsConstructor
  public static class DocketInfo {

    /**
     * 服务名称
     */
    private String serviceName;

    private String location;

    private boolean yb;
  }
}
